package org.ims.inv.service.project.impl;

import org.hibernate.criterion.DetachedCriteria;
import org.ims.inv.dao.project.DAOProjectMaterialMeta;
import org.ims.inv.model.project.ModelProjectMaterialMeta;
import org.ims.inv.service.project.ServiceProjectMaterialMeta;

import cn.trymore.core.service.impl.ServiceGenericImpl;

/**
 * Service: 项目材料元信息
 * 
 * @author Jeccy.Zhao
 *
 */
public class ServiceProjectMaterialMetaImpl
extends ServiceGenericImpl<ModelProjectMaterialMeta> implements ServiceProjectMaterialMeta
{

	/**
	 * Repository of project meta
	 */
	private DAOProjectMaterialMeta daoProjectMaterialMeta;
	
	public ServiceProjectMaterialMetaImpl(DAOProjectMaterialMeta dao)
	{
		super(dao);
		
		this.daoProjectMaterialMeta = dao;
	}

	/*
	 * (non-Javadoc)
	 * @see cn.trymore.core.service.impl.ServiceGenericImpl#getCriterias(cn.trymore.core.model.ModelBase)
	 */
	@Override
	protected DetachedCriteria getCriterias(ModelProjectMaterialMeta domain)
	{
		DetachedCriteria criteria = DetachedCriteria.forClass(ModelProjectMaterialMeta.class);
		
		return criteria;
	}

	public void setDaoProjectMaterialMeta(DAOProjectMaterialMeta daoProjectMaterialMeta)
	{
		this.daoProjectMaterialMeta = daoProjectMaterialMeta;
	}

	public DAOProjectMaterialMeta getDaoProjectMaterialMeta()
	{
		return daoProjectMaterialMeta;
	}

}
